import 'package:architecture/os_size.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../widgets/text_button.dart';
import 'problem_controller.dart';

class ProblemPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetBuilder<ProblemController>(
        init: ProblemController(),
        builder: (controller) {
          return Container(
              margin: EdgeInsets.only(top: 20),
              height: windowHeight,
              child: Wrap(
                  alignment: WrapAlignment.start,
                  crossAxisAlignment: WrapCrossAlignment.start,
                  spacing: 20,
                  runSpacing: 20,
                  children: [
                    MyTextButton(
                      text: "标准版",
                      confirm: () {
                        controller.goGameCenterProblem();
                      },
                    ),
                    MyTextButton(
                      text: "隐智围棋",
                      confirm: () {
                        controller.goYzGoPlatProblem();
                      },
                    ),
                    MyTextButton(
                      text: "隐智棋盘课堂",
                      confirm: () {
                        controller.goYzTeachProblem();
                      },
                    ),
                    MyTextButton(
                      text: "隐智智能棋盘",
                      confirm: () {},
                    ),
                    MyTextButton(
                      text: "电子教材",
                      confirm: () {},
                    ),
                    MyTextButton(
                      text: "教学版",
                      confirm: () {},
                    ),
                  ]));
        });
  }
}
